public class Truck extends GPS {
    private String number;
    private String model;
    private String transporter;
    public Truck(String number,String model,String transporter){
        this.number=number;
        this.model=model;
        this.transporter=transporter;
    }

    public void setModel(String model) {
        this.model = model;
    }
    public String getModel() {
        return model;
    }
    public void setTransporter(String transporter) {
        this.transporter = transporter;
    }

    public String getTransporter() {
        return transporter;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getNumber() {
        return number;
    }
    public void transport(){
        System.out.println("货车正在运输....");
    }
    public String getPosition(){
        String position="北京";
        System.out.println("货物当前位置"+position);
        return position;
    }
}
